import Menu from '@/components/menu';

import css from './index.less';
const Header = (props: any) => {
  const { history } = props;
  const { location } = history;
  const { pathname } = location;
  return (
    <div className={css.header}>
      <div className={css.logo}>
        <img
          src={require('../../assets/logo.png')}
          alt=""
          style={{ display: `${pathname === '/home' ? 'none' : 'block'}` }}
        />
      </div>
      <div className={css.menu}>
        <Menu history={history} />
      </div>
    </div>
  );
};
export default Header;
